// TOWN DIALOGUE SCRIPT
//    Town 137: Gidrik

begintalkscript;

variables;

short i,j,k,r1,choice;

// Zamora

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Zamora";
	text1 = "A dark and mysterious woman sits behind the counter, mixing up a potion. The smells are alternately wonderful and nauseating. _I am Zamora,_ she says in a soft voice. _Welcome to my shop._";
	text5 = "Zamora adds a bit of herb to her mixture. It gives off a tiny puff of greasy smoke. _Excellent. Now, what else can I do for you?_";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What sort of work do you do here?_";
	text1 = "_I make potions of all sorts. Wondrous things, they are._ She smiles, and tastes the brown concoction she's working on.  _Also, I work with other alchemists._";

begintalknode;
	state = 2;
	nextstate = 1;
	question = "_Do you sell any recipes?_";
	text1 = "She adds a pinch of powder to a bowl of gray green mulch. It bubbles. _No, I do not, but the products of my knowledge can be yours. Very useful. Tell me if you care to purchase a potion._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_So you work with other alchemists?_";
	text1 = "_Oh yes._ She smiles. _In fact, one of them was through recently. Told me of some unusual metal he'd found. He concealed a scroll with a map to it, which he told me about. Then he had the misfortune of being spitted by a troglodyte._";
	text2 = "_In fact, for only 500 coins, I may be persuaded to say where the scroll is._";
	text3 = "_But you know everything about that I can tell you._";
	code =
		if (gf(137,8) == 0)
			rs(3);
			else rs(2);
	break;

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_Unusual metal? What do you mean?_";
	text1 = "She laughs. _If I knew, I would have sought it out myself. But he seemed convinced that it was powerful stuff. Maybe even magical. Of course, it might be worthless. He might have been wrong. Who knows?_";
	text3 = "She laughs. _If I knew, I would have sought it out myself. But he seemed convinced that it was powerful stuff. Anyway, like I said, it's hidden somewhere around a rock wall in Aminro. That's all I know._";
	action = DEP_ON_SDF 137 8 0;
	
begintalknode;
	state = 3;
	nextstate = -1;
	condition = gf(137,8) == 0;
	question = "_I will pay you. Where's the scroll?_ (Pay 500 coins.)";
	code =
		run_hardcode(147);
	break;

begintalknode;
	state = 3;
	nextstate = 1;
	condition = gf(137,8) == 0;
	question = "_I can't afford your help._";
	text1 = "_Then you won't get it. Sorry._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "Do some shopping.";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Zamora's Potions","Zamora's quality is high, but her supplies are low. You're surprised by how depleted her stock is. Must have something to do with the monster plagues.",65,5,3);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything._";
	text1 = "_Farewell then, odd traveler._";
	action = END_TALK;
	
// Bryk

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Bryk";
	text1 = "You meet a heavily whiskered man. He has healthy, virile tufts of hair growing out of his nose, and he smells faintly of horses. _I'm Bryk. That's what they call me!_";
	text5 = "You converse with Bryk, trying all the while to conceal your distaste. He kind of smells.";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_What profession are you in?_";
	text1 = "He snorts and takes a pull of whiskey. _I looked after horses! They're my babies!_";

begintalknode;
	state = 30;
	nextstate = -1;
	question = "_Your babies?_";
	text1 = "He smiles. _I love horses._ Then, worried, he hastens to add, _In a healthy, natural way._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_Horses are helpful._";
	text1 = "_Yeah, nothing better to get quickly from one to town to another than a horse. I even have a bunch of 'em out back, strong and healthy, and for sale._";

begintalknode;
	state = 31;
	nextstate = 33;
	question = "_I'd like to purchase some horses._";
	text1 = "_So did everyone else. When the monster plagues came, I sold all of my babies for top money. Everyone who could afford to flee north left before Blackcrag Fortress was sealed._";

begintalknode;
	state = 33;
	nextstate = 29;
	question = "_Blackcrag Fortress?_";
	text1 = "_A mighty Empire fortress, at the north end of Valorim. We've been sealed off from the rest of the Empire, and Blackcrag is the way through. I've even heard rumors our queen is there now. All I know. Please excuse me._ He returns to drinking.";
	action = END_TALK;

begintalknode;
	state = 31;
	nextstate = 29;
	question = "_I don't need any horses._";
	text1 = "His feelings are slightly hurt. _Wouldn't have them for you even if you did want them. But I'm all out. All got rode north. Please excuse me._ He returns to drinking.";
	action = END_TALK;

begintalknode;
	state = 29;
	nextstate = 32;
	question = "_So, how's the horse trading business going?_";
	text1 = "_Real good. Demand has never been stronger._";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_Really? Why?_";
	text1 = "_Because lately, people have had plenty of good reasons to want to be able to move quickly._";

